home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1988-12-30 | 2.0 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| ZX81 Sinclair BASIC (image/sinclairBASIC)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Fri Dec 30 15:58:42 1988, modified Fri Dec 30 15:58:42 1988, creator 'MPS ', type ASCII, 1492 bytes "sample.p" , at 0x654 382 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 73 61 6d 70 6c 65 | 2e 70 00 00 00 00 00 00 |..sample|.p......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 05 d4 00 | 00 01 7e 9f e1 9e 82 9f |........|..~.....|
|00000060| e1 9e 82 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 9f 9e 00 00 |........|........|
|00000080| 7b 20 54 68 69 73 20 69 | 73 20 61 20 73 61 6d 70 |{ This i|s a samp|
|00000090| 6c 65 20 70 72 6f 67 72 | 61 6d 20 74 68 61 74 20 |le progr|am that |
|000000a0| 73 68 6f 77 73 20 6a 75 | 73 74 20 68 6f 77 20 65 |shows ju|st how e|
|000000b0| 61 73 79 20 69 74 09 7d | 0d 7b 20 69 73 20 74 6f |asy it.}|.{ is to|
|000000c0| 20 75 73 65 20 49 63 6f | 6e 20 47 6c 75 65 20 74 | use Ico|n Glue t|
|000000d0| 6f 20 62 69 6e 64 20 69 | 63 6f 6e 73 20 74 6f 20 |o bind i|cons to |
|000000e0| 61 6e 79 20 70 72 6f 67 | 72 61 6d 2e 54 68 69 73 |any prog|ram.This|
|000000f0| 09 7d 0d 7b 20 70 72 6f | 67 72 61 6d 20 73 69 6d |.}.{ pro|gram sim|
|00000100| 70 6c 79 20 77 72 69 74 | 65 73 20 6f 75 74 20 61 |ply writ|es out a|
|00000110| 20 74 65 78 74 20 66 69 | 6c 65 2c 20 64 65 6d 6f | text fi|le, demo|
|00000120| 6e 73 74 72 61 74 69 6e | 67 09 7d 0d 7b 20 74 68 |nstratin|g.}.{ th|
|00000130| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 69 63 |e applic|ation ic|
|00000140| 6f 6e 20 41 4e 44 20 64 | 61 75 67 68 74 65 72 20 |on AND d|aughter |
|00000150| 69 63 6f 6e 20 66 65 61 | 74 75 72 65 20 6f 66 20 |icon fea|ture of |
|00000160| 09 7d 0d 7b 20 49 63 6f | 6e 20 47 6c 75 65 2e 20 |.}.{ Ico|n Glue. |
|00000170| 43 6f 70 79 72 69 67 68 | 74 20 a9 20 4a 6f 65 20 |Copyrigh|t . Joe |
|00000180| 50 69 6c 6c 65 72 61 2c | 20 31 39 38 39 2e 20 09 |Pillera,| 1989. .|
|00000190| 09 09 7d 0d 0d 50 52 4f | 47 52 41 4d 20 53 61 6d |..}..PRO|GRAM Sam|
|000001a0| 70 6c 65 3b 0d 0d 55 53 | 45 53 0d 20 20 4d 65 6d |ple;..US|ES. Mem|
|000001b0| 54 79 70 65 73 2c 20 51 | 75 69 63 6b 44 72 61 77 |Types, Q|uickDraw|
|000001c0| 2c 20 4f 53 49 6e 74 66 | 2c 20 54 6f 6f 6c 49 6e |, OSIntf|, ToolIn|
|000001d0| 74 66 2c 20 54 72 61 70 | 73 2c 09 09 7b 20 53 74 |tf, Trap|s,..{ St|
|000001e0| 61 6e 64 61 72 64 20 6c | 69 62 73 20 09 7d 0d 20 |andard l|ibs .}. |
|000001f0| 20 50 65 67 61 73 75 73 | 3b 09 09 09 09 09 09 09 | Pegasus|;.......|
|00000200| 09 09 09 09 7b 20 55 73 | 65 66 75 6c 20 49 2f 4f |....{ Us|eful I/O|
|00000210| 20 73 74 75 66 66 09 7d | 0d 0d 56 41 52 0d 20 20 | stuff.}|..VAR. |
|00000220| 66 20 09 09 3a 20 54 65 | 78 74 3b 09 09 09 7b 20 |f ..: Te|xt;...{ |
|00000230| 50 6f 69 6e 74 65 72 20 | 74 6f 20 6f 75 72 20 74 |Pointer |to our t|
|00000240| 65 78 74 20 66 69 6c 65 | 20 09 09 7d 0d 20 20 69 |ext file| ..}. i|
|00000250| 6e 66 6f 50 74 72 20 20 | 20 3a 20 44 69 61 6c 6f |nfoPtr | : Dialo|
|00000260| 67 50 74 72 3b 09 7b 20 | 50 6f 69 6e 74 65 72 20 |gPtr;.{ |Pointer |
|00000270| 74 6f 20 74 68 65 20 64 | 69 61 6c 6f 67 20 62 6f |to the d|ialog bo|
|00000280| 78 09 09 7d 0d 20 20 77 | 68 61 74 48 69 74 09 3a |x..}. w|hatHit.:|
|00000290| 20 69 6e 74 65 67 65 72 | 3b 09 09 7b 20 41 63 63 | integer|;..{ Acc|
|000002a0| 65 70 74 20 4f 4b 20 66 | 72 6f 6d 20 75 73 65 72 |ept OK f|rom user|
|000002b0| 09 09 09 7d 0d 20 20 66 | 69 6c 65 4e 61 6d 65 09 |...}. f|ileName.|
|000002c0| 3a 20 53 74 72 32 35 35 | 3b 09 09 7b 20 4e 61 6d |: Str255|;..{ Nam|
|000002d0| 65 20 75 73 65 72 20 67 | 69 76 65 73 20 6f 75 74 |e user g|ives out|
|000002e0| 70 75 74 20 66 69 6c 65 | 09 7d 0d 20 20 76 6f 6c |put file|.}. vol|
|000002f0| 75 6d 65 20 09 3a 20 6c | 6f 6e 67 69 6e 74 3b 09 |ume .: l|ongint;.|
|00000300| 09 7b 20 54 68 65 20 66 | 69 6c 65 27 73 20 76 6f |.{ The f|ile's vo|
|00000310| 6c 75 6d 65 20 72 65 66 | 65 72 65 6e 63 65 20 23 |lume ref|erence #|
|00000320| 09 7d 0d 20 20 63 6f 6e | 74 69 6e 75 65 09 3a 20 |.}. con|tinue.: |
|00000330| 62 6f 6f 6c 65 61 6e 3b | 09 09 7b 20 44 69 64 20 |boolean;|..{ Did |
|00000340| 74 68 65 20 75 73 65 72 | 20 63 61 6e 63 65 6c 20 |the user| cancel |
|00000350| 66 69 6c 65 20 49 2f 4f | 3f 09 7d 0d 20 20 0d 09 |file I/O|?.}. ..|
|00000360| 09 09 20 20 0d 42 45 47 | 49 4e 20 7b 20 4d 61 69 |.. .BEG|IN { Mai|
|00000370| 6e 20 7d 0d 20 20 7b 20 | 2d 2d 20 50 65 72 66 6f |n }. { |-- Perfo|
|00000380| 72 6d 20 74 68 65 20 72 | 6f 75 74 69 6e 65 20 69 |rm the r|outine i|
|00000390| 6e 69 74 69 61 6c 69 7a | 61 74 69 6f 6e 73 20 2d |nitializ|ations -|
|000003a0| 2d 20 7d 0d 20 20 49 6e | 69 74 47 72 61 66 28 40 |- }. In|itGraf(@|
|000003b0| 74 68 65 50 6f 72 74 29 | 3b 0d 20 20 49 6e 69 74 |thePort)|;. Init|
|000003c0| 46 6f 6e 74 73 3b 0d 20 | 20 49 6e 69 74 57 69 6e |Fonts;. | InitWin|
|000003d0| 64 6f 77 73 3b 0d 20 20 | 49 6e 69 74 4d 65 6e 75 |dows;. |InitMenu|
|000003e0| 73 3b 0d 20 20 54 45 49 | 6e 69 74 3b 0d 20 20 49 |s;. TEI|nit;. I|
|000003f0| 6e 69 74 44 69 61 6c 6f | 67 73 28 4e 49 4c 29 3b |nitDialo|gs(NIL);|
|00000400| 0d 20 20 49 6e 69 74 43 | 75 72 73 6f 72 3b 0d 0d |. InitC|ursor;..|
|00000410| 20 20 7b 20 2d 2d 20 4f | 70 65 6e 20 61 20 74 65 | { -- O|pen a te|
|00000420| 78 74 20 66 69 6c 65 2c | 20 77 72 69 74 65 20 74 |xt file,| write t|
|00000430| 6f 20 69 74 2c 20 63 6c | 6f 73 65 20 69 74 2c 20 |o it, cl|ose it, |
|00000440| 61 6e 64 20 61 73 73 69 | 67 6e 20 61 20 64 61 75 |and assi|gn a dau|
|00000450| 67 68 74 65 72 20 69 63 | 6f 6e 20 2d 2d 20 7d 0d |ghter ic|on -- }.|
|00000460| 20 20 63 6f 6e 74 69 6e | 75 65 20 3a 3d 20 47 65 | contin|ue := Ge|
|00000470| 74 46 69 6c 65 4e 61 6d | 65 28 27 4f 27 2c 20 27 |tFileNam|e('O', '|
|00000480| 78 78 78 78 27 2c 20 27 | 53 61 76 65 20 79 6f 75 |xxxx', '|Save you|
|00000490| 72 20 6f 75 74 70 75 74 | 20 66 69 6c 65 27 2c 20 |r output| file', |
|000004a0| 76 6f 6c 75 6d 65 2c 20 | 66 69 6c 65 4e 61 6d 65 |volume, |fileName|
|000004b0| 29 3b 0d 20 20 7b 20 49 | 66 20 75 73 65 72 20 63 |);. { I|f user c|
|000004c0| 61 6e 63 65 6c 73 2c 20 | 64 6f 20 6e 6f 74 68 69 |ancels, |do nothi|
|000004d0| 6e 67 20 26 20 65 78 69 | 74 20 7d 0d 20 20 49 46 |ng & exi|t }. IF|
|000004e0| 20 63 6f 6e 74 69 6e 75 | 65 20 54 48 45 4e 0d 20 | continu|e THEN. |
|000004f0| 20 20 20 42 45 47 49 4e | 0d 20 20 20 20 20 20 72 | BEGIN|. r|
|00000500| 65 77 72 69 74 65 28 66 | 2c 66 69 6c 65 4e 61 6d |ewrite(f|,fileNam|
|00000510| 65 29 3b 0d 20 20 20 20 | 20 20 77 72 69 74 65 6c |e);. | writel|
|00000520| 6e 28 66 2c 27 48 65 6c | 6c 6f 2c 20 77 6f 72 6c |n(f,'Hel|lo, worl|
|00000530| 64 21 27 29 3b 0d 20 20 | 20 20 20 20 63 6c 6f 73 |d!');. | clos|
|00000540| 65 28 66 29 3b 0d 20 20 | 0d 20 20 20 20 20 20 7b |e(f);. |. {|
|00000550| 20 2d 2d 20 4e 6f 77 20 | 62 69 6e 64 20 6f 75 72 | -- Now |bind our|
|00000560| 20 63 75 73 74 6f 6d 20 | 69 63 6f 6e 20 2d 2d 20 | custom |icon -- |
|00000570| 7d 0d 20 20 20 20 20 20 | 42 69 6e 64 49 63 6f 6e |}. |BindIcon|
|00000580| 28 66 69 6c 65 4e 61 6d | 65 2c 76 6f 6c 75 6d 65 |(fileNam|e,volume|
|00000590| 2c 27 47 4c 55 45 27 2c | 27 54 45 58 54 27 29 3b |,'GLUE',|'TEXT');|
|000005a0| 20 0d 0d 20 20 20 20 20 | 20 7b 20 2d 2d 20 49 6e | .. | { -- In|
|000005b0| 66 6f 72 6d 20 75 73 65 | 72 20 6f 66 20 73 75 63 |form use|r of suc|
|000005c0| 63 65 73 73 20 2d 2d 20 | 7d 09 0d 20 20 20 20 20 |cess -- |}.. |
|000005d0| 20 69 6e 66 6f 50 74 72 | 20 3a 3d 20 47 65 74 4e | infoPtr| := GetN|
|000005e0| 65 77 44 69 61 6c 6f 67 | 28 33 30 30 2c 20 4e 49 |ewDialog|(300, NI|
|000005f0| 4c 2c 20 70 6f 69 6e 74 | 65 72 28 2d 31 29 29 3b |L, point|er(-1));|
|00000600| 0d 20 20 20 20 20 20 4d | 6f 64 61 6c 44 69 61 6c |. M|odalDial|
|00000610| 6f 67 28 4e 49 4c 2c 20 | 77 68 61 74 48 69 74 29 |og(NIL, |whatHit)|
|00000620| 3b 0d 20 20 20 20 20 20 | 44 69 73 70 6f 73 44 69 |;. |DisposDi|
|00000630| 61 6c 6f 67 28 69 6e 66 | 6f 50 74 72 29 3b 0d 09 |alog(inf|oPtr);..|
|00000640| 45 4e 44 3b 0d 45 4e 44 | 2e 20 20 7b 20 4d 61 69 |END;.END|. { Mai|
|00000650| 6e 20 7d 0d 00 00 00 00 | 00 00 00 00 00 00 00 00 |n }.....|........|
|00000660| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000670| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000680| 00 00 01 00 00 00 01 4c | 00 00 00 4c 00 00 00 32 |.......L|...L...2|
|00000690| 00 00 00 1c 00 40 00 40 | 00 9a 01 c4 00 01 01 00 |.....@.@|........|
|000006a0| 00 00 00 00 00 00 00 82 | 07 43 6f 6e 66 69 72 6d |........|.Confirm|
|000006b0| 08 73 61 6d 70 6c 65 2e | 70 6d 02 00 00 00 54 45 |.sample.|pm....TE|
|000006c0| 58 54 4d 50 53 20 00 00 | 00 00 00 c0 00 00 00 00 |XTMPS ..|........|
|000006d0| 00 00 54 45 58 54 4d 50 | 53 20 00 00 00 00 00 c0 |..TEXTMP|S ......|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 26 2a 9f dd 75 b3 00 00 | 05 d4 00 00 01 7e 00 83 |&*..u...|.....~..|
|00000700| 00 00 00 00 94 00 07 00 | 00 00 00 00 8c 01 00 00 |........|........|
|00000710| 9e 01 46 04 03 4e 65 77 | 00 00 00 00 00 00 a6 01 |..F..New|........|
|00000720| 00 00 b8 01 46 04 06 43 | 61 6e 63 65 6c 00 00 00 |....F..C|ancel...|
|00000730| 00 00 8d 00 0e 00 9d 00 | ba 88 0b 4e 65 77 20 57 |........|...New W|
|00000740| 69 6e 64 6f 77 3a 00 00 | 00 00 00 00 1a 00 df 00 |indow:..|........|
|00000750| 2e 01 5b 80 00 00 00 00 | 00 00 34 01 00 00 46 01 |..[.....|..4...F.|
|00000760| 46 04 05 45 6a 65 63 74 | 00 00 00 00 00 00 4e 01 |F..Eject|......N.|
|00000770| 00 00 60 01 46 04 05 44 | 72 69 76 65 00 00 00 00 |..`.F..D|rive....|
|00000780| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 65 20 61 |...H..Mo|naco.e a|
|00000790| 70 70 6c 69 63 61 74 69 | 6f 6e 20 69 63 6f 6e 20 |pplicati|on icon |
|000007a0| 41 4e 44 20 64 61 00 06 | 00 04 00 47 00 17 01 d4 |AND da..|...G....|
|000007b0| 02 74 00 47 00 17 01 d4 | 02 74 9f e1 66 42 00 00 |.t.G....|.t..fB..|
|000007c0| 01 11 00 00 01 11 00 00 | 00 00 01 00 00 00 01 00 |........|........|
|000007d0| 00 00 01 4c 00 00 00 4c | 00 00 00 32 00 03 9a 00 |...L...L|...2....|
|000007e0| 05 84 00 00 00 1c 00 32 | 00 00 4d 50 53 52 00 00 |.......2|..MPSR..|
|000007f0| 00 0a 03 ed ff ff 00 00 | 00 00 00 04 c9 b8 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+